package com.nervenets.template.enumeration;

import com.nervenets.general.enumeration.Enums;
import io.swagger.annotations.ApiModel;

@ApiModel("数据权限范围")
public enum DataScope implements Enums {
    ALL("全部"),
    SELF("仅本人"),
    DEPT("部门"),
    DEPT_ALL("部门及以下");

    private final String texts;

    DataScope(String text) {
        this.texts = text;
    }

    @Override
    public String getText() {
        return texts;
    }

    @Override
    public String getValue() {
        return this.name();
    }
}
